<?php
class UserLogoutAction extends FrontendAction
{
	public function __construct()
	{
		parent::__construct();
		$this->responseType = 'tpl';
		$this->layout = 'index';
	}

	public function execute()
	{
		if(!empty($this->data['user']))
		{
			$this->data['uc_logout']	= C('UserService')->getUcLogout($this->data['user']['id']);
		}
		C('LtCookie')->delCookie('user_auth');
		
		$this->data['seo']['title']	= '退出成功';
	}
}
